package com.prj.ufdm.cloud.ms.core.enums;

/**
 *  是否生效
 *  是否启用
 */
public enum YesOrNoEnum {
	YESORNOSTATUS_STATUS_NO("0","否"),
	YESORNOSTATUS_STATUS_YES("1","是");
	
	private String code;
	private String message;

	YesOrNoEnum(String code, String message){
		this.code = code;
		this.message = message;
	}

	public static String getRetMessage(String retCode){
		String rtnRetCode = "";
		for (YesOrNoEnum yesOrNoStatusEnum : YesOrNoEnum.values()) {
			if(yesOrNoStatusEnum.code.equals(retCode)){
				rtnRetCode = yesOrNoStatusEnum.message;
			}
	    }
		return rtnRetCode;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
